package com.miyu.system.pojo.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import lombok.Data;

/**
 * 用户角色配置表（中间表);
 * @author : miyu
 * @date : 2022-9-30
 */
@ApiModel(value = "用户角色配置表（中间表)",description = "")
@Data
@Entity
@Table(name="sys_user_role")
public class SysUserRole implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @ApiModelProperty(name = "主键",notes = "")
    @Column(name = "sur_id", nullable = false, length =32 )
    private String surId ;
    /** 用户 */
    @ApiModelProperty(name = "用户",notes = "")
    @Column(name = "user_id", nullable = true, length =32 )
    private String userId ;
    /** 角色 */
    @ApiModelProperty(name = "角色",notes = "")
    @Column(name = "role_id", nullable = true, length =32 )
    private String roleId ;
}